home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / pcc / v04n12 / batch2.exe / SHIFTIT2.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-10-12  |  460 b   |  24 lines

  1. @ECHO OFF
  2. REM This is SHIFTIT2.BAT
  3. IF %1!==! GOTO OOPS
  4. :TOP
  5. IF %1!==! GOTO END
  6. IF EXIST %1*.* GOTO START
  7. ECHO No files beginning with %1
  8. GOTO SH
  9. :START
  10. ECHO Want to see files beginning with %1 (Y/N)?
  11. KEY
  12. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO Y
  13. GOTO SH
  14. :Y
  15. DIR %1*.* /P
  16. :SH
  17. SHIFT
  18. GOTO TOP
  19. :OOPS
  20. ECHO Enter 1 or more letters of the alphabet
  21. ECHO and %0 will selectively let you look at
  22. ECHO all files beginning with those letters
  23. :END
  24.